<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery.js"></script>
<link rel="stylesheet" href=" /default.css">
<script charset="utf-8" src="js/kindeditor-min.js"></script>
<script charset="utf-8" src="js/zh_CN.js"></script>
<script type="text/javascript" src="js/Validform_v5.js"></script>
<script>
	$(function() {
		//表单验证
		$(".modelform").Validform({
			tiptype:3
		});
	});
	KindEditor.ready(function(K) {
		var editor = K.editor({
			uploadJson : 'adm.php?m=upload',
			fileManagerJson : 'adm.php?m=upload_manager',
			allowFileManager : true
		});
		K('#image1').click(function() {
			editor.loadPlugin('image', function() {
				editor.plugin.imageDialog({
					imageUrl : K('#url1').val(),
					clickFn : function(url, title, width, height, border, align) {
						K('#url1').val(url);
						editor.hideDialog();
					}
				});
			});
		});
	});
</script>
</head>

<body>
<div class="colorarea01">
	<div class="search clearfix">
		<div class="searchL">
			<ul class="menulist">
				<li><a href="modellist" class="list">返回车型列表</a></li>
			</ul>
		</div>
	</div>
	<form name="form1" class="modelform" method="post" enctype="multipart/form-data" action="">
	{!!csrf_field()!!}
		<table class="maintable" cellpadding="0" cellspacing="0" width="100%">
			<tbody><tr>
				<th>车型名称</th>
				<td><input name="s_name" id="s_name" size="30" datatype="s" nullmsg="请填写车型名称！" type="text"><span class="Validform_checktip"></span></td>
			</tr>
			<tr>
				<th>缩略图：</th>
				<!-- <td><input  id="url1" type="text"> -->
					<td>
					<input id="image1" name="s_pic" value="选择图片" type="file"></td>
			</tr>
			<tr>
				<th></th>
				<td><div class="buttons">
						<input name="thevaluesubmit" value="提交保存" class="submit" type="submit">
						<input name="a" value="add" type="hidden">
						<input name="s_id" value="" type="hidden">
						<input name="valuesubmit" value="yes" type="hidden">
					</div></td>
			</tr>
		</tbody></table>
	</form>
</div>

</body></html>